<template>
  <van-button class="out" round plain @click="onDelOrder"
    >删除订单</van-button
  >
  <van-button
    class="next"
    round
    plain
    type="success"
    @click="goHome"
    >咨询其他医生</van-button
  >
</template>

<script setup>
import { defineEmits } from 'vue'
import { useRouter } from 'vue-router'
import { useStore } from 'vuex'

const router = useRouter()
const store = useStore()

const emits = defineEmits(['delOrder'])

const onDelOrder = () => {
  emits('delOrder')
}

const goHome = () => {
  store.commit('layout/setActive', 0)
  router.push('/home')
}
</script>

<style lang="scss" scoped></style>
